function MontandoDivHistorico(padre)
{
    $('#div_cpu_ram_areaChart').removeClass('activo');
    $('#div_cpu_ram_areaChart').addClass('desactivo');
    $('#div_cpu_ram_GAUGEchart').removeClass('activo');
    $('#div_cpu_ram_GAUGEchart').addClass('desactivo');
    cargarChartCpuRam();
    cargarChartCpuRamGAUGE();
    cargarChartSGA();
    $("#divHistorico").show();
}


function cargarChartCpuRam(){
    
    if($('#div_cpu_ram_areaChart')){
        
        $('#div_cpu_ram_areaChart').remove();
    }
    var div_cpu_ram=$('<div></div>');
    div_cpu_ram.attr('class','div_cpu_ram_areaChart activo');
    div_cpu_ram.attr('id','div_cpu_ram_areaChart');
    div_cpu_ram.css('heigth','100px');
    div_cpu_ram.css('width','500px');

    $("#divHistorico").append(div_cpu_ram);
    $("#divHistorico");
    drawChartCpu();
}
function cargarChartCpuRamGAUGE() {
    if ($('#div_cpu_ram_GAUGEchart')) {
        
        $('#div_cpu_ram_GAUGEchart').remove();
    }
    var div_cpu_ramg=$('<div></div>');
    div_cpu_ramg.attr('class','div_cpu_ram_GAUGEchart activo');
    div_cpu_ramg.attr('id','div_cpu_ram_GAUGEchart');
    div_cpu_ramg.css('heigth','100px');
    div_cpu_ramg.css('width','500px');
    $("#divHistorico").append(div_cpu_ramg);
    $("#divHistorico");
    drawChartGAUGE();
}
function cargarChartSGA() {
    if ($('#div_SGA_chart')) {
        
        $('#div_SGA_chart').remove();
    }
    var div_SGA=$('<div></div>');
    div_SGA.attr('class','div_SGA_chart activo');
    div_SGA.attr('id','div_SGA_chart');
    div_SGA.css('heigth','100px');
    div_SGA.css('width','500px');
    $("#divHistorico").append(div_SGA);
    $("#divHistorico");
    drawChartSGA();
}